Cache-purge-helper - Additional instances where nginx-helper and lscache plugin should be purged.

Overview

cache-purge-helper

Additional instances where nginx-helper and lscache plugin should be purged.

Install

  1. Extract the zip file.
  2. Upload them to /wp-content/plugins/ directory on your WordPress installation.
  3. Then activate the Plugin from Plugins page.

Contributions

Support/Sponsor

You might also like...
If you are beginner in WordPress plugin development or if you want to develop your own store product plugin you use this plugin
If you are beginner in WordPress plugin development or if you want to develop your own store product plugin you use this plugin

hirwa-products-plugin If you are beginner in WordPress plugin development or if you want to develop your own store product plugin you use this plugin

An opinionated support package for Laravel, that provides flexible and reusable helper methods and traits for commonly used functionality.

Support An opinionated support package for Laravel, that provides flexible and reusable helper methods and traits for commonly used functionality. Ins

SEO Helper is a package that provides tools and helpers for SEO (Search Engine Optimization).

SEO Helper By ARCANEDEV© SEO Helper is a package that provides tools and helpers for SEO (Search Engine Optimization). Feel free to check out the rele

Helper class for working with Laravel Mix in WordPress themes and plugins.

Hybrid\Mix Hybrid Mix is a class for working with Lavarel Mix. It adds helper methods for quickly grabbing asset files cached in the mix-manifest.json

Live Helper Chat - live support for your website. Featuring web and mobile apps, Voice & Video & ScreenShare. Supports Telegram, Twilio (whatsapp), Facebook messenger including building a bot.

Live helper chat It's an open-source powered application, which brings simplicity and usability in one place. With live helper chat you can bring live

This package provides new helper functions that take care of handling all the translation hassle and do it for you.

Laravel Translate Message 🥳 This package provides new helper functions that take care of handling all the translation hassle and do it for you. Insta

A convenient helper for using the laravel-seo package with Filament Admin and Forms
A convenient helper for using the laravel-seo package with Filament Admin and Forms

Combine the power of Laravel SEO and Filament PHP. This package is a convenient helper for using the laravel-seo package with Filament Admin and Forms

CSS Exfil helper script to generate injected CSS and corresponding HTML (inspired by mike gualtieri)

The PoC-CSS Exfill Basic Keylogger First of all i was developing bot stuff and i seen attribute=value] [target=_blank] in source code of website. This

Localization Helper - Package for convenient work with Laravel's localization features and fast language files generation
Localization Helper - Package for convenient work with Laravel's localization features and fast language files generation

Localization Helper Package for convenient work with Laravel's localization features and fast language files generation. Installation Via Composer $ c

Comments
  • Clear object cache as well?

    Clear object cache as well?

    If I enable Redis Caching it creates a problem whenever there is a minor core update. These happen automatically, which is probably for the best because security patches need to be applied quickly.

    However, on my multisite network I have had some issues where plugins like Beaver Builder temporarily malfunctioned until the network Page Cache was cleared after a core update. So thank you for creating this plugin to remedy that!

    HOWEVER, I also have a problem with some plugins (Convert Pro) which temporarily malfunction until the Object Cache is cleared. So I would REALLY appreciate it if you can find a way to incorporate "clear object cache" into this Cache Purge Helper plugin.

    I'm not sure if there needs to be some way of "opting out" of the object cache purge. I always clear both caches at the same time but other people might have different needs.

    Your time and skill much appreciated.

    opened by twdesign 2
  • Incorporate Stock Clearing of Cache

    Incorporate Stock Clearing of Cache

    See https://gist.github.com/mrcave/7cdf6707273252de04094d4ed8d0d43c

    //clear entire cache when stock is reduced or replenished
    
    function clear_cache_when_stock_changes( $order ) {
    	if(class_exists('PhpRedis_Purger') || class_exists('Predis_Purger')){
    		global $nginx_purger;
    		$nginx_purger->purge_all();	
    	}
    }
             
    add_action( 'woocommerce_reduce_order_stock', 'clear_cache_when_stock_changes', 10, 1 );
    add_action( 'woocommerce_restore_order_stock', 'clear_cache_when_stock_changes', 10, 1 );
    
    //only clear product page caches when stock changes
    
    function clear_product_page_caches_when_stock_changes( $order ) {
    
    	if(class_exists('PhpRedis_Purger') || class_exists('Predis_Purger')){
    		if($order){
    			global $nginx_purger;
    
    			foreach ( $order->get_items() as $item_id => $item ) {
    				$product_id = $item->get_product_id();
    				$nginx_purger->purge_post( $product_id );
    			}
    		}
    	}
    }
    
    add_action( 'woocommerce_reduce_order_stock', 'clear_product_page_caches_when_stock_changes', 10, 1 );
    add_action( 'woocommerce_restore_order_stock', 'clear_product_page_caches_when_stock_changes', 10, 1 );
    
    opened by jordantrizz 0
  • Cannot update Elementor if CPH is in use

    Cannot update Elementor if CPH is in use

    Hey Guys,

    When we try to update Elementor using ManageWP, we see this error:

    Elementor 3.5.3 > 3.5.4

    Elementor 3.5.3 -> 3.5.4: Call to a member function purge_all() on null occured in wp-content/plugins/cache-purge-helper/cache-purge-helper.php on line 44.

    Thanks in advance,

    Jordy

    opened by webpreparejordy 1
Releases(0.1.5a)
Owner
Jordan
I like stuff. https://gitter.im/jordantrizz/community
Jordan
This package should help you with creating and managing a Laravel DDD Application

This package should help you with creating and managing a Laravel DDD Application. This package is heavily inspired by "Laravel beyond CRUD" from Spatie.

J. Regner 158 Dec 25, 2022
Handle all the hard stuff related to EU MOSS tax/vat regulations, the way it should be.

VatCalculator Handle all the hard stuff related to EU MOSS tax/vat regulations, the way it should be. Integrates with Laravel and Cashier — or in a st

Dries Vints 1.1k Jan 5, 2023
Handle all the hard stuff related to EU MOSS tax/vat regulations, the way it should be.

VatCalculator Handle all the hard stuff related to EU MOSS tax/vat regulations, the way it should be. Integrates with Laravel and Cashier — or in a st

Dries Vints 1.1k Jan 7, 2023
This template should help get you started developing with laravel 9 + Vue 3 in Vite + Tailwind

simple-project This template should help get you started developing with laravel 9 + Vue 3 in Vite + Tailwind

Yemeni Open Source 4 Oct 5, 2022
A laravel package to handle model specific additional meta fields in an elegant way.

Laravel Meta Fields A php package for laravel framework to handle model meta data in a elegant way. Installation Require the package using composer: c

Touhidur Rahman 26 Apr 5, 2022
Public API for the project coding.events. Made in PHP 8.0 with Lumen 8, PHP-FPM, NGINX and MySQL 8.

coding.events API Uma API feita apenas para passar o tempo, montando uma API para o site <coding.events>. Sinta-se livre para usar esse código como es

Kaique Garcia 3 Oct 9, 2022
A helper package to flash a bootstrap alert to the browser via a Facade or a helper function.

Alert Box (Laravel) A helper package to flash a bootstrap alert to the browser via a Facade or a helper function. <div class="alert alert-info fade in

Ben-Piet O'Callaghan 17 Dec 30, 2022
A package for Laravel One Time Password (OTP) generator and validation without Eloquent Model, since it done by Cache.

Laravel OTP Introduction A package for Laravel One Time Password (OTP) generator and validation without Eloquent Model, since it done by Cache. The ca

Lim Teck Wei 52 Sep 6, 2022
Cache chunks of your Blade markup with ease. 🔪

Blade Cache Directive Cache chunks of your Blade markup with ease. Installation You can install the package via Composer: composer require ryangjchand

Ryan Chandler 155 Dec 10, 2022
Projeto em Laravel para práticar redis, cache e vue js

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Nicolas Pereira 1 Nov 26, 2021