• Resolved thilsberg

    (@thilsberg)


    WP Album creates lots of files in {…}/wp-content/uploads/wppa/temp directory.
    File names begin with “wppa” and have “.js” entension.
    Sample name is wppa.101AcUlkQTlg.js.
    I found over 190,000 files like that.
    Is there a way to automatically purge the files?

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    If you did not disable cron (background processes) they are automatically removed after 1 to 2 hours after creation.

    Thread Starter thilsberg

    (@thilsberg)

    What table/option should I check?
    VIII.A.0 is unchecked.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Tick Table IX-A9.1: Log Cron

    After a few hours, inspect the logfile (Table VIII-C1. Do not accidently clear the log)

    You should see lines like:

    Cron: on:25.11.2018 16:01:38: cron-job: wppa_clear_cache started.
    Cron: on:25.11.2018 16:01:57: cron-job: wppa_clear_cache completed. 
    

    If you do NOT see these lines, but you do see other cron-job messages with ‘started’ or ‘completed’, pls tell me.

    Verify that you do NOT have in config:
    define( 'DISABLE_WP_CRON', true );
    If you have it, remove it.

    Thread Starter thilsberg

    (@thilsberg)

    I do see clear_cache being scheduled:

    Cron: on:30.11.2018 03:07:29: cron-job: wppa_clear_cache scheduled for run in 600 sec. wppa-cron.php:483 wppa_schedule_clear_cache() <- : wppa_do_update_treecounts() <- class-wp-hook.php:286 call_user_func_array()
    url: /wp-cron.php?doing_wp_cron=1543565248.5446529388427734375000.

    Right now, I see about 5600 files in the temp directory. Some of them are 3 days old.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    You see it scheduled, but that does not mean it is getting executed.

    Look for cron-job: wppa_clear_cache started.

    Many things inside wppa rely upon cron jobs being properly executed, so i would like you to install plugin WP Crontrol
    See https://wordpress.org/plugins/wp-crontrol/

    After installation and activation you find ‘Cron Events’ under the tools menu.
    Locate wppa_clear_cache and click the Run Now link.

    You should see a message:
    Successfully executed the cron event wppa_clear_cache.

    If not, tell me what you see.

    Thread Starter thilsberg

    (@thilsberg)

    I installed and activated wp-crontrol.
    I did not see wppa_clear_cache.
    I added it and I clicked to execute.
    The following message showed:

    Successfully executed the cron event wppa_clear_cache.

    .
    I checked that he temp directory has not been cleared.
    Also, I do not see entry in wppa log file:

    Cron: on:30.11.2018 08:39:23: admin: wppa_clear_cache scheduled for run in 10 sec. wppa-common-functions.php:1059 wppa_schedule_clear_cache() <- wppa-ajax.php:3511 wppa_clear_cache() <- : wppa_ajax_callback()
    url: /wp-admin/admin-ajax.php
    Cron: on:30.11.2018 08:47:14: cron-job: wppa_cleanup started.
    Cron: on:30.11.2018 08:47:14: cron-job: wppa_cleanup completed.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    I will further investigate on this. For the time being, you may manually (ftp) clear the content of the temp dir.

    Thread Starter thilsberg

    (@thilsberg)

    I noticed that temp directory is being cleared fine on another site residing on the same server.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Pls compare the filesystem rights (chmod) on …/wp-content/uploads/wppa/temp between the two sites.

    Thread Starter thilsberg

    (@thilsberg)

    Directories on both sites have identical user and group codes.
    Directories themselves have chmod 755.
    Files within directories have chmod 0604.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Pls update to the current version 7.0.03.
    I made some changes, and i expect it will work correctly now.
    You can monitor temp file deletions if you tick the box in Table IX-A9.4: Log File events

    Pls keep me informed.

    Thread Starter thilsberg

    (@thilsberg)

    I updated to 7.0.03 and scheduled wppa_clear_cache.
    The files have been purged.
    Thanks.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘wppa/temp directory’ is closed to new replies.