Jinx Fast-Cache

Jinx Fast-Cache

Wordpress plugin

Install on Wordpress

App Details

Jinx Fast-Cache provides a very simple but efficient way of full page caching to WordPress.
It will generate static HTML files which will be called using your servers rewrite rules.
This feature will bypass the whole PHP process and render only a simple HTML file without the whole overhead.

Usage

After activating the plugin, it will modify your .htaccess file. If this is not possible, make sure to enter the rules by yourself:

# BEGIN Jinx Fast-Cache RewriteEngine On RewriteBase / RewriteCond %{DOCUMENT_ROOT}/wp-content/jinx-fast-cache/%{HTTP_HOST}/%{REQUEST_URI}/%{QUERY_STRING}/index.html -s RewriteCond %{REQUEST_METHOD} GET RewriteRule .* /wp-content/jinx-fast-cache/%{HTTP_HOST}/%{REQUEST_URI}/%{QUERY_STRING}/index.html [L] # END Jinx Fast-Cache 

When using nginx, make sure to add the following rules:

set $cache_path false; if ($request_method = GET) { set $cache_path /wp-content/jinx-fast-cache/$host/$uri/$args/index.html; } location / { try_files $cache_path $uri $uri/ /index.php?$query_string; } 

You may flush, warm or refresh (flush & warm) single or multiple URLs using the buttons in the admin bar.

By default all posts will be automatically warmed after they have been saved and flushed after they have been deleted or put on draft.

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.

The plugin will automatically flush and warm the cache after an update has been completed.

Developers

Filters

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.

  • jinx_fast_cache_active: Control if an URL should be cached (default true) or not.
  • 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.
  • jinx_fast_cache_posts: Filter the posts which should be cached.
  • jinx_fast_cache_taxonomies: Control the taxonomies which should be cached. By default all taxonomies which are “publicly_queryable” will be cached.
  • jinx_fast_cache_terms: Filter the terms which should be cached.
  • jinx_fast_cache_output: Use this to modify the HTML content written to your cache file.
  • jinx_fast_cache_minify: Control if the output should be minified (default true) or not.
  • jinx_fast_cache_flush: Control which URLs should be flushed. This may be used to flush related URLs eg. your front page.
  • jinx_fast_cache_warm: Control which URLs should be warmed. This may be used to warm related URLs eg. your front page.
  • jinx_fast_cache_queue_interval: Change the interval of the queues cron task (default 60) to warm URLs.
  • 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.
  • jinx_fast_cache_gc_interval: Change the interval of the GCs cron task (default 60) to flush invalid URLs.
  • jinx_fast_cache_ignore_404: Control if 404 errors should be cached (default false) or not. Not that a lot of 404 errors will also create a lot of cache files on your server.
  • jinx_fast_cache_query_params: Control if and which query params will be accepted. You may pass ‘__return_empty_array’ to allow no query params at all.
  • jinx_fast_cache_refresh_on_upgrade: Control if the cache should be refreshed on upgrade (default true).
  • jinx_fast_cache_duration: Change the caches duration (default null). The cache of URLs without a duration will always be valid. You may use a numeric value eg. 3600 or something like ’12 hours’ or ‘1 week’ etc.

Injections

Jinx Fast-Cache also provides the feature to inject dynamic content into your pages. If you eg. want to print the users name on the page, you may inject it via ajax.
You may also use a placeholder to let your users know, that the content will be loading eg. “loading …”.

Inject a template:

do_action('jinx_fast_cache_inject_template', 'user'); do_action('jinx_fast_cache_inject_template', 'user', 'loading ...'); 

This has the same effect as:

do_action('jinx_fast_cache_inject', 'get_template_part', ['user']); do_action('jinx_fast_cache_inject', 'get_template_part', ['user'], 'loading ...'); 

You may call every public function of PHP, your theme or any plugin:

do_action('jinx_fast_cache_inject', 'date', ['Y']); do_action('jinx_fast_cache_inject', 'my_function', ['param1', 'param2']); do_action('jinx_fast_cache_inject', 'namespace\MyClass::myMethod', ['param1', 'param2']); do_action('jinx_fast_cache_inject', ['namespace\MyClass', 'myMethod'], ['param1', 'param2']); 

The first parameter is the function call, the second parameter is an array or arguments passed to this function and the third parameter is the placeholder.

Inside the editor, you may also use shortcodes to inject content.

[jinx_fast_cache_inject]My dynamic content or other shortcodes can be used here[/jinx_fast_cache_inject] [jinx_fast_cache_inject placeholder="loading..."]My dynamic content or other shortcodes can be used here[/jinx_fast_cache_inject] 

Every shortcode or block between “jinx_fast_cache_inject” will be parsed and injected via ajax. Note that this may cause problems when working with JS events.

Injection Callbacks

You may trigger custom JS after dynamic content has been injected.

Using jQuery:

$('.element').on('jinx-fast-cache-inject', function(e) { // so smth. with e.target or this }); 

Using VanillaJS:

element.addEventListener('jinx-fast-cache-inject' (e) => { // so smth. with e.target }, false);<h3>Tags</h3> 

Even there are some filters to build a relation between URLs, tags are an easier way to do this.
You may connect multiple URLs with tags, so if one URL gets flushed, it will also flush URLs with the same tag.

Tags can be used inside the editor by using the shortcode:

[jinx_fast_cache tags="foo,bar"] 

Or you can use it inside your templates by calling the action:

do_action('jinx_fast_cache', ['tags' => 'foo,bar']); do_action('jinx_fast_cache', ['tags' => ['foo', 'bar']]); 

A usecase for tags might be to connect single posts with your page for posts. So if a single post will be flushed, the page for posts and all other posts will also be flushed.

You may also add multiple tags by calling the shortcode or action multiple times. This will work very well when using blocks or other shortcodes.

Cache duration

As you have seen already, you may set a cache duration globally by using the filter ‘jinx_fast_cache_duration’.
However, if there is a specific URL eg. the front page, you may want to change the duration.

You may use a shortcode like this:

[jinx_fast_cache duration="3600"] [jinx_fast_cache duration="12 hours"] 

Or you can use it inside your templates by calling the action:

do_action('jinx_fast_cache', ['duration' => 3600]);<h3>Hits</h3> 

Be aware that you can set tags and the cache duration in just one call.

[jinx_fast_cache duration="3600" tags="foo,bar"] 

Or you can use it inside your templates by calling the action:

do_action('jinx_fast_cache', ['duration' => 3600, 'tags' => 'foo,bar']); do_action('jinx_fast_cache', ['duration' => 3600, 'tags' => ['foo', 'bar']]); 

Note that tags will accept a string or an array.

Roadmap

  • [x] Release the plugin
  • [x] Add HTML minification for output
  • [x] Allow injection of dynamic rendered templates using ajax requests
  • [x] Add taxonomies
  • [x] Provide scheduled tasks
  • [x] Add admin columns for cache status
  • [x] Provide exclude option for posts and terms in backend
  • [x] Add multisite support
  • [x] Flush and warm after update complete
  • [x] Add possibility to ignore 404
  • [x] Allow query params to be excluded or totally ignored
  • [x] Provide cache duration
  • [ ] Provide admin panel to change options
  • [x] Add tags to flush related pages
  • [x] Add shortcode for injects
  • [x] Add JS events for injects

Pricing

Starting from $0 per month.

Check Out the Video Poll Widget

By Common Ninja

Video PollTry For Free!

App Info

Rating

Reviewers

No reviews

Tags

cache
files
fullpage
html

Developed By

Lukas Rydygel

Quick & Easy

Find the Best Wordpress plugins for you

Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!

Testimonial

Testimonial plugins for Wordpress

Contact Form

Contact Form plugins for Wordpress

Maps

Maps plugins for Wordpress

Translation

Translation plugins for Wordpress

Chat

Chat plugins for Wordpress

Slider

Slider plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Contact

Contact plugins for Wordpress

Galleries

Galleries plugins for Wordpress

SEO

SEO plugins for Wordpress

Forms

Forms plugins for Wordpress

Comments

Comments plugins for Wordpress

Backup

Backup plugins for Wordpress

Privacy

Privacy plugins for Wordpress

Optimize

Optimize plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Comments

Comments plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Video Player

Video Player plugins for Wordpress

popup

popup plugins for Wordpress

SiteMap

SiteMap plugins for Wordpress

Payment

Payment plugins for Wordpress

Coming Soon

Coming Soon plugins for Wordpress

Inventory

Inventory plugins for Wordpress

Testimonials

Testimonials plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Membership

Membership plugins for Wordpress

Forms

Forms plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Sliders

Sliders plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Security

Security plugins for Wordpress

Ads

Ads plugins for Wordpress

Music Player

Music Player plugins for Wordpress

Countdown

Countdown plugins for Wordpress

Email Marketing

Email Marketing plugins for Wordpress

Membership

Membership plugins for Wordpress

Ecommerce

Ecommerce plugins for Wordpress

Customer Support

Customer Support plugins for Wordpress

Video Player

Video Player plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Common Ninja Apps

Some of the best Common Ninja plugins for Wordpress

Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.

Video Poll for Wordpress logo

Video Poll

Create interactive video polls that use engaging clips to boost participation, gather insights, and help visitors vote in a more dynamic way.

Restaurant Menu for Wordpress logo

Restaurant Menu

Create an online restaurant menu that organizes dishes, highlights key items, and helps visitors explore options with confidence.

Reviews Badge for Wordpress logo

Reviews Badge

Use a reviews badge to highlight your ratings, build trust at a glance, improve credibility, and help increase conversions across your site.

Feature Voting for Wordpress logo

Feature Voting

Use feature voting so users submit ideas, vote on requests, and help you prioritize product updates by real customer demand.

Opening Hours for Wordpress logo

Opening Hours

Add opening hours to your site to give visitors clear, reliable business information that improves trust, reduces confusion, and supports user experience.

Leaderboard for Wordpress logo

Leaderboard

Add a customizable leaderboard to your site to display rankings, track scores, and encourage friendly competition.

Nudge Button for Wordpress logo

Nudge Button

Nudge button with a subtle shaking animation that draws attention to important calls to action, increases interaction, and helps boost conversions.

Business Listings for Wordpress logo

Business Listings

Create business listings with a listings widget that presents companies clearly, supports easy organization, and helps visitors find the right services quickly.

Timeline for Wordpress logo

Timeline

Use a timeline widget to display events and milestones in chronological order with images and text so visitors understand your story clearly.

Pricing Slider for Wordpress logo

Pricing Slider

Use a pricing slider to show dynamic prices by quantity, help visitors compare options, and support confident purchases.

Audio Player for Wordpress logo

Audio Player

Add a no-code audio player to your site and boost engagement with music, podcasts, and voice content effortlessly.

Glassdoor Reviews for Wordpress logo

Glassdoor Reviews

Show Glassdoor reviews to highlight employee feedback, strengthen employer brand, and help candidates trust your company.

More plugins

plugins You Might Like

Discover Apps By Platform

Discover the best apps for your website

WordPress
Wix
Shopify
Weebly
Webflow
Joomla
PrestaShop
Shift4Shop
WebsiteX5
MODX
Opencart
NopCommerce

Common Ninja Search Engine

The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!

Multiple platforms