Skip to content
Browse files

not caching files any more, remove residue

  • Loading branch information...
1 parent e8dbfdc commit 82d161276bf749a31918179caf1945c0266e2bdb @brianshaler committed Mar 25, 2011
Showing with 0 additions and 24 deletions.
  1. +0 −24 eventification.php
View
24 eventification.php
@@ -22,7 +22,6 @@ function init() {
if (function_exists('add_options_page'))
add_options_page('Eventification', 'Eventification', 9, __FILE__, array('eventification', 'show_options'));
- self::setup_dir();
self::$api_string = get_option("eventification_api", self::$api_string);
self::$post_type = get_option("eventification_post_type", self::$post_type);
self::$upcoming_page = get_option("eventification_upcoming_page", self::$upcoming_page);
@@ -101,8 +100,6 @@ function get_events() {
if (!self::$init)
self::init();
- $cache_dir = self::$cache_dir;
- $prefix = self::$prefix;
$update_frequency = self::$update_frequency;
$api_string = self::$api_string;
$post_type = self::$post_type;
@@ -254,27 +251,6 @@ function make_event_url($str) {
return $str;
}
- function setup_dir() {
- $cache_dir = self::$cache_dir;
- $parent_dir = dirname($cache_dir);
- if (!file_exists($cache_dir)) {
- if (!is_writable($parent_dir) || !(@mkdir($cache_dir, 0777))) {
- // Error: cache dir not writable
- return false;
- }
- }
- if (!is_writable($cache_dir)) {
- // Error: wp-content not writable
- return false;
- }
-
- if ($cache_dir{strlen($cache_dir)-1} != "/") {
- $cache_dir .= "/";
- }
- self::$cache_dir = $cache_dir;
- return true;
- }
-
function check_cron() {
if ( !wp_next_scheduled( 'eventification_cron' ) ) {
wp_schedule_event(time(), 'hourly', 'eventification_cron');

0 comments on commit 82d1612

Please sign in to comment.
Something went wrong with that request. Please try again.