• Resolved DrAgOnS

    (@mihalyf)


    Hi! First of all, I want to thank you for your plugin! Second, Will be possible to generate all page cache files (for all woocommerce products) and save all the files externally? I want to generate lot’s of products page cache but on my server i’m running out of space, so ideally I want to save all page cache files externally.

    Really appreciate your help.

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter DrAgOnS

    (@mihalyf)

    And additionally, your plugin will work with multisite? I can’t see it in the description.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @mihalyf

    Thank you for reaching out and I am happy to assist you with this.

    If you are using Disk: Enhanced or Disk: Basic caching method, the cache will be stored to disk in the /wp-content/cache/ folder. If you are running out of disk space, you can opt to install php Redis or php Memcached extension and use once of those memory-based caching methods to store cache in memory instead of disk.

    And to confirm, yes, W3 Total Cache does work in the multisite environment. Once installed, you will see the option to “Network activate” the plugin.

    Thanks!

    Thread Starter DrAgOnS

    (@mihalyf)

    Hi Marko! Thank you for your answer! I want to use Redis on an external server, it’s that possible? I install your plugin and find the redis option but it’s disabled. What I want to achieve is having the cached files on a separated server where I will have plenty of space, it’s that possible?

    I’m running a multisite, I seeing that the configuration is for all the sites in the multi sites environment, it’s possible to enable/disable the cache and it’s configuration by site? or having different configurations by site?

    Another question is that I want to cache the webpage and the amp version that use the form webpage/?amp=1, it’s that possible too? how?

    Thanks in advance!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @mihalyf

    This is possible, however, not specifically related to the W3 Total Cache. It’s related to your Redis server and the Redis configuration.

    In order to be able to select Redis as a caching method in W3 Total Cache, you need to install php Redis extension on your server.

    As for the multisite, you can disable “Use single network configuration file for all sites.” option in Performance>General settings>Miscellaneous. Then you will be able to use specific settings for each website.

    By default W3TC does not cache query strings, so you can use Disk: Basic or any memory based caching (Redis or Memcached) and enable the option in Performance>Page Cache “Cache?URIs with query string variables”, or if you want to cache only amp pages, simply add amp to Performance>Page Cache>Advanced>Accepted query strings:

    Thanks!

    Thread Starter DrAgOnS

    (@mihalyf)

    Hi and Thank you Marko for your time answering this! I already install phpredis on ubuntu (and restart the server) BUT the redis option on w3tc is still grayed, what else I can do? to try to save the cache files externally with redis?

    Again thanks!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hey @mihalyf

    Can you please check this article and check the status and also make sure to restart the redis server as well?

    Let me know what you are getting checking the status.

    Thanks!

    Thread Starter DrAgOnS

    (@mihalyf)

    Hi Marko, thank you for your answer. Remember that What I want to achieve is to have the redis server externally (another server/ip) , even with that, should I need to install the redis on the local/wordpress server?

    Thanks!

    Thread Starter DrAgOnS

    (@mihalyf)

    Hi Marko! I follow your article, I did it and also restart the server, all in the same machine to test if it works, but the redis option is still grayed, what else can I do?

    Again thanks for your time!

    systemctl status redis-server
    
     redis-server.service - Advanced key-value store
    
         Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
    
         Active: active (running) since Wed 2023-04-12 19:35:16 -05; 5min ago
    
           Docs: https://redis.io/documentation,
    
                 man:redis-server(1)
    
       Main PID: 1245 (redis-server)
    
         Status: "Ready to accept connections"
    
          Tasks: 5 (limit: 76900)
    
         Memory: 5.9M
    
            CPU: 254ms
    
         CGroup: /system.slice/redis-server.service
    
                 └─1245 "/usr/bin/redis-server 127.0.0.1:6379" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" >
    Thread Starter DrAgOnS

    (@mihalyf)

    I get it to work, I was missing set the extension=redis on the php.ini. Now, how can I set the redis server to be in other ip? So W3TC save there the preloaded pages?

    Let me know and thanks!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @mihalyf

    Sorry for the late reply.

    This is something that you need to check with your hosting provider, as W3TC will work with the IP/port you add in the settings.

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Create all page cache files and save it externally?’ is closed to new replies.