Support » Plugin: Comet Cache » WooCommerce Orders Fail

  • Resolved ianatkins

    (@ianatkins)



    Hello,

    We’re running Comet Cache and WooCommerce.

    Sometimes orders will get stuck on processing – with an error logged in the notes section (URL obscured) – even though the payment has processed.
    RecursiveDirectoryIterator::__construct(/home/xxxxx/public_html/wp-content/cache/comet-cache/cache-5b5c66a409313987774746-tmp/https/www-xxxxx-com/fr/page/subpage/page): failed to open dir: Too many open files

    Looks like Comet Cache is clearing the site cache on order update, is it possible to disable this.

    And is there a PHP setting to avoid the Too many open files error?

    Best.

    Ian

Viewing 2 replies - 1 through 2 (of 2 total)
  • Is this plugin still being supported?

    Plugin Author Raam Dev

    (@raamdev)

    Hi @ianatkins,

    The “failed to open dir: Too many open files” message is related to your hosting environment, so you’ll need to check with your web hosting company to see what can be done to increase the number of files that can be open at the same time. This article has some more information that may be helpful: https://stackoverflow.com/a/14749074

    Looks like Comet Cache is clearing the site cache on order update, is it possible to disable this.

    In Comet Cache Pro you can disable the automatic clear/wipe routines, however this is not recommended. The cache is cleared automatically when specific events occur specifically to ensure that an out-of-date cache file does not get served to a visitor. For example, if your site shows the quantity of an item available, you would want the quantity to change for future visitors whenever someone purchases the item. If the cache was not cleared automatically, the wrong quantity may be shown.

    My recommendation would be to check with your web hosting company to increase the number of files that can be open at any given time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WooCommerce Orders Fail’ is closed to new replies.