diff --git a/classified.module b/classified.module
index 88e966f..3042aa9 100644
--- a/classified.module
+++ b/classified.module
@@ -441,10 +441,10 @@ function _classified_page_overview() {
 
   if ($cached) {
     $ret = $cached->data;
-    dsm('cached');
+    drupal_set_message('cached');
   }
   else {
-    dsm('not cached');
+    drupal_set_message('not cached');
     $vid = _classified_get('vid');
     $terms = taxonomy_get_tree($vid);
 
diff --git a/tests/classified_basic.test b/tests/classified_basic.test
index 4c2511c..b2d5446 100644
--- a/tests/classified_basic.test
+++ b/tests/classified_basic.test
@@ -265,6 +265,34 @@ class ClassifiedBasicTest extends DrupalWebTestCase {
     // $this->assertPattern($pattern, t('Ad correctly listed in the "Recent ads" block.'), $this->group);
   }
 
+  /**
+   * Issue #1382234: Create new ad link missing.
+   *
+   * Root cause: improper caching.
+   */
+  function test1382234() {
+    $this->group = '#1382234';
+
+    $this->drupalLogin($this->creator_user);
+    // Force caching of overview page
+    cache_clear_all('classified:overview', 'cache');
+    $this->drupalGet('classified');
+    $this->assertLink(t('Add one'), 0, t('Creator sees ad creation link.'));
+
+    // Anonymous should not get creation link from page cached for authenticated users.
+    $this->drupalLogout();
+    $this->drupalGet('classified');
+    $this->assertNoLink(t('Add one'), t('Anonymous users do not see ad creation link.'));
+    cache_clear_all('classified:overview', 'cache');
+    $this->drupalGet('classified');
+    $this->assertNoLink(t('Add one'), t('Anonymous users do not see ad creation link.'));
+
+    // Creator user should see the Add one link on the cached page.
+    $this->drupalLogin($this->creator_user);
+    $this->drupalGet('classified');
+    $this->assertLink(t('Add one'), 0, t('Creator sees ad creation link.'));
+  }
+
   function test1397422() {
     $this->group = '#1397422';
 
