{"action":"created","issue":{"url":"https://api.github.com/repos/vufind-org/vufind/issues/246","labels_url":"https://api.github.com/repos/vufind-org/vufind/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/vufind-org/vufind/issues/246/comments","events_url":"https://api.github.com/repos/vufind-org/vufind/issues/246/events","html_url":"https://github.com/vufind-org/vufind/pull/246","id":50180910,"number":246,"title":"Persistent favorites","user":{"login":"mbeh-ub","id":7057099,"avatar_url":"https://avatars.githubusercontent.com/u/7057099?v=3","gravatar_id":"","url":"https://api.github.com/users/mbeh-ub","html_url":"https://github.com/mbeh-ub","followers_url":"https://api.github.com/users/mbeh-ub/followers","following_url":"https://api.github.com/users/mbeh-ub/following{/other_user}","gists_url":"https://api.github.com/users/mbeh-ub/gists{/gist_id}","starred_url":"https://api.github.com/users/mbeh-ub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbeh-ub/subscriptions","organizations_url":"https://api.github.com/users/mbeh-ub/orgs","repos_url":"https://api.github.com/users/mbeh-ub/repos","events_url":"https://api.github.com/users/mbeh-ub/events{/privacy}","received_events_url":"https://api.github.com/users/mbeh-ub/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":31,"created_at":"2014-11-26T14:06:14Z","updated_at":"2015-03-12T11:22:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/vufind-org/vufind/pulls/246","html_url":"https://github.com/vufind-org/vufind/pull/246","diff_url":"https://github.com/vufind-org/vufind/pull/246.diff","patch_url":"https://github.com/vufind-org/vufind/pull/246.patch"},"body":"This code implements a cache for record data. E.g. when adding a new favorite the record data will be stored in the database (therefore we added a new table record).\r\n\r\nTo use the the cache you have to add a new table to the vufind schema an enable the cache in the settings:\r\n1) Add a new table to the vufind database. For postgres use: \r\nCREATE TABLE record\r\n(\r\n  id serial NOT NULL,\r\n  record_id character varying,\r\n  user_id integer,\r\n  list_id integer,\r\n  session_id character varying,\r\n  source character varying,\r\n  data text,\r\n  updated timestamp without time zone,\r\n  expire timestamp without time zone,\r\n  PRIMARY KEY (id)\r\n);\r\n\r\nGRANT ALL ON TABLE record TO postgres;\r\nGRANT ALL ON TABLE record TO vufind;\r\n\r\nGRANT ALL ON TABLE record_id_seq TO postgres;\r\nGRANT ALL ON TABLE record_id_seq TO vufind;\r\n\r\n2) In config.ini set cache=enabled ( see Section [Social] )\r\n"},"comment":{"url":"https://api.github.com/repos/vufind-org/vufind/issues/comments/78462520","html_url":"https://github.com/vufind-org/vufind/pull/246#issuecomment-78462520","issue_url":"https://api.github.com/repos/vufind-org/vufind/issues/246","id":78462520,"user":{"login":"mbeh-ub","id":7057099,"avatar_url":"https://avatars.githubusercontent.com/u/7057099?v=3","gravatar_id":"","url":"https://api.github.com/users/mbeh-ub","html_url":"https://github.com/mbeh-ub","followers_url":"https://api.github.com/users/mbeh-ub/followers","following_url":"https://api.github.com/users/mbeh-ub/following{/other_user}","gists_url":"https://api.github.com/users/mbeh-ub/gists{/gist_id}","starred_url":"https://api.github.com/users/mbeh-ub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbeh-ub/subscriptions","organizations_url":"https://api.github.com/users/mbeh-ub/orgs","repos_url":"https://api.github.com/users/mbeh-ub/repos","events_url":"https://api.github.com/users/mbeh-ub/events{/privacy}","received_events_url":"https://api.github.com/users/mbeh-ub/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T11:22:18Z","updated_at":"2015-03-12T11:22:18Z","body":"**solr-exception when using operatingMode=\"fallback\" in [Default]**\r\nhave you also set the values for cachableSources and cacheIdComponents? Please try:\r\n\r\n[Default]\r\noperatingMode = \"fallback\"\r\ncachableSources = \"Solr\"\r\ncacheIdComponents = \"userId\"\r\n\r\n**to a.)**\r\n I'am glad about adjustments in RecordCache.ini. \r\n\r\n**to d.)**\r\nI see the record table more like a common storage for records. I think of the caching aspect as an additions functional aspect (realised in the php-code). But I also have no objections to rename the table to recordcache.\r\n\r\n**to e.)** \r\nI also think unit test are essential. I will try to setup a basic strucutre. If I face problems I will appreciate your help.\r\n\r\nI'am also going to work on / thing about the points b.) c.) and f.).\r\n\r\nThank you for your fast feedback !\r\n\r\n\r\n\r\n"}}