Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

BasketCleanup

Summary

Sets how the shopping baskets for expired and removed sessions are cleaned up.

Usage

 

BasketCleanup=cronjob|pageload

Description

If a user added some products into his basket and then stopped shopping (e.g. closed his browser window) without initiating the checkout process, the user's session will expire after a while. The eZ Publish session handling, which is based on the PHP session functionality, takes care about removing expired sessions from the database. It is also possible to remove sessions (either expired or not) using the "Setup - Sessions" part of the admin interface.

If the "BasketCleanup" setting is set to "cronjob" (default), removing a user's session from the database will not delete the shopping basket that was created during this session. These unneeded baskets can be cleaned up periodically by running the "basket_cleanup.php" cronjob.

If you specify "BasketCleanup=pageload", removing a user's session from the database (either automatically by session cleanup or manually by the site administrator) will delete the corresponding shopping basket. The "basket_cleanup.php" cronjob will not do anything. Please note that this configuration is not recommended for sites with many visitors because removing baskets on session cleanup will take a lot of time.

Svitlana Shatokhina (08/11/2006 1:56 pm)

Svitlana Shatokhina (22/11/2006 10:33 am)


Comments

There are no comments.