{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/7767","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/7767/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/7767/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/7767/events","html_url":"https://github.com/joomla/joomla-cms/pull/7767","id":103009510,"number":7767,"title":"Add (rudimentary) page exclusion support for the Page Cache plugin","user":{"login":"OctavianC","id":1422378,"avatar_url":"https://avatars.githubusercontent.com/u/1422378?v=3","gravatar_id":"","url":"https://api.github.com/users/OctavianC","html_url":"https://github.com/OctavianC","followers_url":"https://api.github.com/users/OctavianC/followers","following_url":"https://api.github.com/users/OctavianC/following{/other_user}","gists_url":"https://api.github.com/users/OctavianC/gists{/gist_id}","starred_url":"https://api.github.com/users/OctavianC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OctavianC/subscriptions","organizations_url":"https://api.github.com/users/OctavianC/orgs","repos_url":"https://api.github.com/users/OctavianC/repos","events_url":"https://api.github.com/users/OctavianC/events{/privacy}","received_events_url":"https://api.github.com/users/OctavianC/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/Language%20Change","name":"Language Change","color":"eb6420"},{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/New%20Feature","name":"New Feature","color":"e102d8"},{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/PR-staging","name":"PR-staging","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-08-25T12:19:01Z","updated_at":"2015-09-10T15:31:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/joomla/joomla-cms/pulls/7767","html_url":"https://github.com/joomla/joomla-cms/pull/7767","diff_url":"https://github.com/joomla/joomla-cms/pull/7767.diff","patch_url":"https://github.com/joomla/joomla-cms/pull/7767.patch"},"body":"# Problem\r\nWhat has really bothered me for some time is that once you enable `System - Page Cache` you have no control over which pages are being cached. For example, you might want not to cache a particular page. You can't do that unless you disable the plugin completely.\r\n# Proposed solution\r\nIn the `System - Page Cache` plugin parameters I've added two new fields:\r\n- `Exclude Menu Items`. This is a multiple option dropdown that lists all of your menu items. You can select which menu items will not be cached.\r\n-  `Exclude Pages`. This is just a `<textarea>` that accepts regex patterns, each on a new line. I'm sure most people won't know how to use this but then again I'm sure they won't need to. It's also placed in the `Advanced` tab, I hope not too many people find it :)\r\n\r\n# Backwards compatibility\r\nI've made all efforts to ensure that this does not break current installations. By default these fields will be empty and will only be checked if they actually have contents.\r\n# How to test\r\n## Exclude Menu Items\r\nAfter you create a few menu items, activate the plugin and select them from the list. They will no longer get cached.\r\n## Exclude Pages\r\nThe matches are performed against the path, including query and fragment (eg. `/joomla/index.php?option=com_test&task=something#header`).\r\nYou can test by activating the plugin, creating some menu items and adding regular expressions to match them in the `Exclude Pages` field. For example if you create a menu item called `contact` and your URL will point to `/joomla/index.php/contact` you can use `\\/contact\\/?` as a pattern to exclude all pages that match `/contact/` (that means that sub-menu items will be excluded as well)."},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/139282479","html_url":"https://github.com/joomla/joomla-cms/pull/7767#issuecomment-139282479","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/7767","id":139282479,"user":{"login":"SiteOp","id":2822837,"avatar_url":"https://avatars.githubusercontent.com/u/2822837?v=3","gravatar_id":"","url":"https://api.github.com/users/SiteOp","html_url":"https://github.com/SiteOp","followers_url":"https://api.github.com/users/SiteOp/followers","following_url":"https://api.github.com/users/SiteOp/following{/other_user}","gists_url":"https://api.github.com/users/SiteOp/gists{/gist_id}","starred_url":"https://api.github.com/users/SiteOp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SiteOp/subscriptions","organizations_url":"https://api.github.com/users/SiteOp/orgs","repos_url":"https://api.github.com/users/SiteOp/repos","events_url":"https://api.github.com/users/SiteOp/events{/privacy}","received_events_url":"https://api.github.com/users/SiteOp/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T15:31:56Z","updated_at":"2015-09-10T15:31:56Z","body":"Perfect. <hr /><sub>This comment was created with the <a href=\"https://github.com/joomla/jissues\">J!Tracker Application</a> at <a href=\"http://issues.joomla.org/tracker/joomla-cms/7767\">issues.joomla.org/joomla-cms/7767</a>.</sub>"}}