Changeset 2676385
- Timestamp:
- 02/10/2022 01:35:46 PM (4 years ago)
- File:
-
- 1 edited
-
jinx-fast-cache/trunk/readme.txt (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
jinx-fast-cache/trunk/readme.txt
r2676369 r2676385 16 16 It will generate static HTML files which will be called using your apaches rewrite rules. 17 17 This feature will bypass the whole PHP process and render only a simple HTML file without the whole overhead. 18 Also there is no real admin panel, but you may use some filters to change the behavior.19 18 20 19 == Installation == … … 26 25 == Usage == 27 26 28 After activating the plugin, it will modify your htaccess file. If this is not possible, make sure t heenter the rules by yourself:27 After activating the plugin, it will modify your htaccess file. If this is not possible, make sure to enter the rules by yourself: 29 28 30 29 # BEGIN Jinx Fast-Cache … … 38 37 When using nginx, make sure to add the following rules: 39 38 40 41 39 set $cache_path false; 42 40 if ($request_method = GET) { … … 49 47 You may flush, warm or refresh (flush & warm) single or multiple URLs using the buttons in the admin bar. 50 48 51 By default all posts will be automatically bewarmed after they have been saved and flushed after they have been deleted or put on draft.49 By default all posts will be automatically warmed after they have been saved and flushed after they have been deleted or put on draft. 52 50 53 51 The warm process will create a queue which will be handled in a scheduled task (cron). When warming up a single post, it will skip the queue. … … 59 57 Jinx Fast-Cache is made for developers. So far no admin panel is available, but you may modify a lot of it's behaviors using filters. 60 58 61 * jinx_fast_cache: Return true (default) or false to control, if a URL should be cache or not.62 * jinx_fast_cache_post_types: Control the post types which should be cached. By default all post types which are "publicly_queryable" and "page" will be cached.63 * jinx_fast_cache_posts: Filter the posts which should be cached.64 * jinx_fast_cache_taxonomies: Control the taxonomies which should be cached. By default all taxonomies which are "publicly_queryable" will be cached.65 * jinx_fast_cache_terms: Filter the terms which should be cached.66 * jinx_fast_cache_output: Use this to modify the HTML content written to your cache file.67 * jinx_fast_cache_minify: Return true (default) or false if you want the output to be minified.68 * jinx_fast_cache_flush: Control which URLs should be flushed. This may be used to flush related URLs eg. your front page.69 * jinx_fast_cache_warm: Control which URLs should be warmed. This may be used to warm related URLs eg. your front page.70 * jinx_fast_cache_interval: Change the interval of the cron task (default 60).71 * jinx_fast_cache_queue_size: Change the number of URLs which should be handled durring a cron task (default 10). When setting it to <= 0, all URLs will be handled. This may cause a huge load when you have a lot of URLs.59 - **jinx_fast_cache**: Return true (default) or false to control, if a URL should be cache or not. 60 - **jinx_fast_cache_post_types**: Control the post types which should be cached. By default all post types which are "publicly_queryable" and "page" will be cached. 61 - **jinx_fast_cache_posts**: Filter the posts which should be cached. 62 - **jinx_fast_cache_taxonomies**: Control the taxonomies which should be cached. By default all taxonomies which are "publicly_queryable" will be cached. 63 - **jinx_fast_cache_terms**: Filter the terms which should be cached. 64 - **jinx_fast_cache_output**: Use this to modify the HTML content written to your cache file. 65 - **jinx_fast_cache_minify**: Return true (default) or false if you want the output to be minified. 66 - **jinx_fast_cache_flush**: Control which URLs should be flushed. This may be used to flush related URLs eg. your front page. 67 - **jinx_fast_cache_warm**: Control which URLs should be warmed. This may be used to warm related URLs eg. your front page. 68 - **jinx_fast_cache_interval**: Change the interval of the cron task (default 60). 69 - **jinx_fast_cache_queue_size**: Change the number of URLs which should be handled durring a cron task (default 10). When setting it to <= 0, all URLs will be handled. This may cause a huge load when you have a lot of URLs. 72 70 73 71 === Injections === … … 75 73 Jinx Fast-Cache also provides the feature to inject dynamic content parts. If you eg. want to print the users name on the page, you may inject it via ajax. 76 74 77 Note that the first parameter is the placeholder content. This will prevent any problems when calling the action without the plugin beeing active. You may use itload the template normally or print a note like "loading ...".75 Note that the first parameter is the placeholder content. This will prevent any problems when calling the action without the plugin beeing active. You may load the template normally or print a note like "loading ...". 78 76 79 77 Inject a template: … … 81 79 do_action('jinx_fast_cache_inject_template', null, 'user'); 82 80 83 84 81 This has the same result as: 85 82 86 83 do_action('jinx_fast_cache_inject', null, 'get_template_part', ['user']); 87 88 84 89 85 You may call every public function of PHP, your theme or plugin: … … 94 90 do_action('jinx_fast_cache_inject', null, ['namespace\MyClass', 'myMethod'], ['param1', 'param2']); 95 91 96 97 92 == Roadmap == 98 93 99 *[x] Release it100 *[x] Add HTML minification for output101 *[x] Allow injection of dynamic rendered templates using ajax requests102 *[x] Add taxonomies103 *[x] Provide scheduled tasks104 *[x] Add admin columns for cache status105 *[ ] Provide exclude option for posts and terms in backend106 *[x] Add multisite support107 *[ ] Provide cache timeout108 *[ ] Provide admin panel to change options94 - [x] Release it 95 - [x] Add HTML minification for output 96 - [x] Allow injection of dynamic rendered templates using ajax requests 97 - [x] Add taxonomies 98 - [x] Provide scheduled tasks 99 - [x] Add admin columns for cache status 100 - [ ] Provide exclude option for posts and terms in backend 101 - [x] Add multisite support 102 - [ ] Provide cache timeout 103 - [ ] Provide admin panel to change options
Note: See TracChangeset
for help on using the changeset viewer.